require(['jquery', 'cookie', 'app', "lay"], function ($) {
    require(['vue'], function (Vue) {
        var dic = new Vue({
            el: ".vue-box"
            , data: {
                where: {},
            }
            , created: function () {
                this.loadPage();
            }
            , methods: {
                loadPage: function () {
                    load();
                    var toolbar = [];
                    var tool = [];
                    bspVIEW($("#authoritiesTable"), "/service-shop/RepertoryController/repertory", [
                        {type: 'checkbox'},
                        {type: 'numbers'},
                        {
                            templet: '<p>{{d.shopEntity.name}}</p>',
                            align: 'center',
                            width: 100,
                            title: '商品名称'
                            , minWidth: 120
                        },
                        {field: 'number', title: '数量', minWidth: 120},
                        {field: 'note', title: '说明', minWidth: 120},
                        {field: 'createTime', title: '时间', minWidth: 120}
                    ], {common: this.where}, toolbar, tool, function (res, curr, count) {

                    });
                },
                seachs: function () {
                    this.where = fromName($(".el-form"));
                    this.loadPage();
                },
                refer: function () {

                }
            }
        });
    })
});